package com.varian.redis.config;

import com.varian.misc.ApplicationStartedCustomizer;
import com.varian.redis.util.RedisUtil;
import org.springframework.boot.availability.AvailabilityChangeEvent;
import org.springframework.boot.availability.ReadinessState;

/**
 * @author ben
 * @since 2024/7/1
 */
public class CacheStarted implements ApplicationStartedCustomizer {
    @Override
    public void afterExecute(AvailabilityChangeEvent<ReadinessState> event) {
        RedisUtil.init();
    }
}
